<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/11/19
  Time: 9:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="Author" contect="http://www.webqin.net">
    <title>忘记密码</title>
    <link type="text/css" href="${pageContext.request.contextPath}/static/css/css.css" rel="stylesheet"/>
    <script src="${pageContext.request.contextPath}/static/js/vendor/jquery-3.3.1.min.js"></script>

    <script type="text/javascript">
        window.onload = function () {
            $(".sel-sjyz").show();
            $(".sel-yxyz").hide();
            $(".code-sj").show();
            $(".code-yx").hide();
            var phone = ${user.phone};
            var start = phone.toString().substring(0,3);
            var end = phone.toString().substring(7,11);
            phone = start + "****" + end;
            $("#phone").val(phone);
        }


        //导航定位
        $(function () {
            // $(".nav li:eq(2) a:first").addClass("navCur")
            //验证手机 邮箱
            $(".selyz").change(function () {
                var selval = $(this).find("option:selected").val();
                if (selval == "0") {
                    $(".sel-sjyz").show()
                    $(".sel-yxyz").hide()
                    $(".code-sj").show()
                    $(".code-yx").hide()
                } else if (selval == "1") {
                    $(".sel-sjyz").hide()
                    $(".sel-yxyz").show()
                    $(".code-sj").hide()
                    $(".code-yx").show()
                }
            })
        })
    </script>
</head>

<body>

<div class="content">
    <div class="web-width">
        <div class="for-liucheng">
            <div class="liulist for-cur"></div>
            <div class="liulist for-cur"></div>
            <div class="liulist"></div>
            <div class="liulist"></div>
            <div class="liutextbox">
                <div class="liutext for-cur"><em>1</em><br/><strong>填写账户名</strong></div>
                <div class="liutext for-cur"><em>2</em><br/><strong>验证身份</strong></div>
                <div class="liutext"><em>3</em><br/><strong>设置新密码</strong></div>
                <div class="liutext"><em>4</em><br/><strong>完成</strong></div>
            </div>
        </div>
        <!--for-liucheng/-->
        <form action="javascript:;" method="get" class="forget-pwd">
            <dl>
                <dt>验证方式：</dt>
                <dd>
                    <select class="selyz">
                        <option value="0">已验证手机</option>
                        <option value="1">已验证邮箱</option>
                    </select>
                </dd>
                <div class="clears"></div>
            </dl>
            <dl>
                <input type="text" name="uid" value="${user.uid}" hidden>
                <dt>用户名：</dt>
                <dd><input type="text" value="${user.username}" readonly/></dd>
                <div class="clears"></div>
            </dl>
            <dl class="sel-sjyz">
                <dt>已验证手机：</dt>
                <dd><input type="text" id="phone" value="" readonly/></dd>
                <div class="clears"></div>
            </dl>
            <dl class="sel-yxyz">
                <dt>已验证邮箱：</dt>
                <dd><input type="text" value="764852123@qq.com" readonly/></dd>
                <div class="clears"></div>
            </dl>
            <dl class="code-sj">
                <dt>手机校验码：</dt>
                <dd><input type="text" id="phonecode" name="phonecode"/>
                    <input type="button" id="phonetime" onclick="getPhoneCode('${user.phone}')" value="获取短信验证码"></input>
                </dd>
                <div class="clears codecheck"></div>
            </dl>
            <dl class="code-yx">
                <dt>邮箱校验码：</dt>
                <dd><input type="text"/>
                    <button onclick="nodo()">获取邮箱验证码</button>
                </dd>
                <div class="clears"></div>
            </dl>
            <div class="subtijiao"><input type="button" onclick="submit2('${user.uid}','${user.phone}')" value="提交"/></div>
        </form>
        <!--forget-pwd/-->
    </div>
    <!--web-width/-->
</div>
<!--content/-->

</body>
<script>

</script>
</html>

